home *** CD-ROM | disk | FTP | other *** search
/ Precision Software Appli…tions Silver Collection 3 / Precision Software Applications Silver Collection Volume Three (PSM) (1993).iso / music2 / mepody.exe / PLARRAY.C < prev    next >
Text File  |  1991-04-13  |  347b  |  13 lines

  1. /*   Function playarray() plays a global array melody. */ 
  2.  
  3. playarray()
  4. {
  5.   int i;
  6.  
  7.   for (i=0;i<MAX;i++)
  8.   {
  9.     sound(melody[i][0]);     /* USE                                   */
  10.     delay(melody[i][1]);     /* tone(melody[i][0], melody[i][1]);     */
  11.     nosound();               /* for other compilers.                  */
  12.   }
  13. }